<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition template="/menuAplicacionNovedades.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.EditTblprestamosTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">

            <h:form>
                <p:panel id="panel" styleClass="panelCabeza" header="#{bundle.EditTblprestamosTitle}">
                    <p:messages id="msgs"/>
                    <h:panelGrid columns="2">
                        <h:outputLabel value="#{bundle.EditTblprestamosLabel_consecutivos}" for="consecutivos" />
                        <p:inputText id="consecutivos" value="#{tblprestamosController.selected.consecutivos}" title="#{bundle.EditTblprestamosTitle_consecutivos}" required="true" requiredMessage="#{bundle.EditTblprestamosRequiredMessage_consecutivos}"/>
                        <h:outputLabel value="#{bundle.EditTblprestamosLabel_ideEmp}" for="ideEmp" />
                        <p:inputText id="ideEmp" value="#{tblprestamosController.selected.ideEmp}" title="#{bundle.EditTblprestamosTitle_ideEmp}" required="true" requiredMessage="#{bundle.EditTblprestamosRequiredMessage_ideEmp}"/>
                        <h:outputLabel value="#{bundle.EditTblprestamosLabel_nomEmp}" for="nomEmp" />
                        <p:inputText id="nomEmp" value="#{tblprestamosController.selected.nomEmp}" title="#{bundle.EditTblprestamosTitle_nomEmp}" required="true" requiredMessage="#{bundle.EditTblprestamosRequiredMessage_nomEmp}"/>
                        <h:outputLabel value="#{bundle.EditTblprestamosLabel_referencia}" for="referencia" />
                        <p:inputText id="referencia" value="#{tblprestamosController.selected.referencia}" title="#{bundle.EditTblprestamosTitle_referencia}" required="true" requiredMessage="#{bundle.EditTblprestamosRequiredMessage_referencia}"/>
                        <h:outputLabel value="#{bundle.EditTblprestamosLabel_conceptoPrestamo}" for="conceptoPrestamo" />
                        <p:inputText id="conceptoPrestamo" value="#{tblprestamosController.selected.conceptoPrestamo}" title="#{bundle.EditTblprestamosTitle_conceptoPrestamo}" required="true" requiredMessage="#{bundle.EditTblprestamosRequiredMessage_conceptoPrestamo}"/>
                        <h:outputLabel value="#{bundle.EditTblprestamosLabel_fechaPrestamo}" for="fechaPrestamo" />
                        <p:inputText id="fechaPrestamo" value="#{tblprestamosController.selected.fechaPrestamo}" title="#{bundle.EditTblprestamosTitle_fechaPrestamo}" required="true" requiredMessage="#{bundle.EditTblprestamosRequiredMessage_fechaPrestamo}">
                            <f:convertDateTime pattern="MM/dd/yyyy" />
                        </p:inputText>
                        <h:outputLabel value="#{bundle.EditTblprestamosLabel_montoInicial}" for="montoInicial" />
                        <p:inputText id="montoInicial" value="#{tblprestamosController.selected.montoInicial}" title="#{bundle.EditTblprestamosTitle_montoInicial}" required="true" requiredMessage="#{bundle.EditTblprestamosRequiredMessage_montoInicial}"/>
                        <h:outputLabel value="#{bundle.EditTblprestamosLabel_periodos}" for="periodos" />
                        <p:inputText id="periodos" value="#{tblprestamosController.selected.periodos}" title="#{bundle.EditTblprestamosTitle_periodos}" required="true" requiredMessage="#{bundle.EditTblprestamosRequiredMessage_periodos}"/>
                        <h:outputLabel value="#{bundle.EditTblprestamosLabel_interes}" for="interes" />
                        <p:inputText id="interes" value="#{tblprestamosController.selected.interes}" title="#{bundle.EditTblprestamosTitle_interes}" required="true" requiredMessage="#{bundle.EditTblprestamosRequiredMessage_interes}"/>
                        <h:outputLabel value="#{bundle.EditTblprestamosLabel_valorCuota}" for="valorCuota" />
                        <p:inputText id="valorCuota" value="#{tblprestamosController.selected.valorCuota}" title="#{bundle.EditTblprestamosTitle_valorCuota}" required="true" requiredMessage="#{bundle.EditTblprestamosRequiredMessage_valorCuota}"/>
                        <h:outputLabel value="#{bundle.EditTblprestamosLabel_valorInteres}" for="valorInteres" />
                        <p:inputText id="valorInteres" value="#{tblprestamosController.selected.valorInteres}" title="#{bundle.EditTblprestamosTitle_valorInteres}" required="true" requiredMessage="#{bundle.EditTblprestamosRequiredMessage_valorInteres}"/>
                        <h:outputLabel value="#{bundle.EditTblprestamosLabel_valorAbono}" for="valorAbono" />
                        <p:inputText id="valorAbono" value="#{tblprestamosController.selected.valorAbono}" title="#{bundle.EditTblprestamosTitle_valorAbono}" required="true" requiredMessage="#{bundle.EditTblprestamosRequiredMessage_valorAbono}"/>
                        <h:outputLabel value="#{bundle.EditTblprestamosLabel_saldo}" for="saldo" />
                        <p:inputText id="saldo" value="#{tblprestamosController.selected.saldo}" title="#{bundle.EditTblprestamosTitle_saldo}" required="true" requiredMessage="#{bundle.EditTblprestamosRequiredMessage_saldo}"/>
                        <h:outputLabel value="#{bundle.EditTblprestamosLabel_fechaComienzo}" for="fechaComienzo" />
                        <p:inputText id="fechaComienzo" value="#{tblprestamosController.selected.fechaComienzo}" title="#{bundle.EditTblprestamosTitle_fechaComienzo}" required="true" requiredMessage="#{bundle.EditTblprestamosRequiredMessage_fechaComienzo}">
                            <f:convertDateTime pattern="MM/dd/yyyy" />
                        </p:inputText>
                        
                    </h:panelGrid>
                    <p:commandButton action="#{tblprestamosController.update}" update="panel" value="#{bundle.EditTblprestamosSaveLink}"/>
                    
                    <p:commandButton action="#{tblprestamosController.prepareList}" value="#{bundle.EditTblprestamosShowAllLink}" immediate="true"/>
                    </p:panel>
            </h:form>
        </ui:define>
    </ui:composition>

</html>
